//
//  UIView+YTAdd.h
//  Elife
//
//  Created by 拓客营 on 2022/3/30.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIView (YTAdd)

/// 系统渐变色
-(void)themeGradientSize:(CGSize)size;

/// 系统渐变色 带圆角
-(void)themeGradientCornerRadius:(float)cornerRadius Size:(CGSize)size;

/// 自定义渐变色 左到右
-(void)customGradientFrom:(UIColor *)leftColor toColor:(UIColor *)rightColor size:(CGSize)size;

/// 自定义渐变色 上到下
-(void)customGradientFromTop:(UIColor *)topColor toBottomColor:(UIColor *)bottomColor size:(CGSize)size;

@end

NS_ASSUME_NONNULL_END
